<%@ Page Language="C#" MasterPageFile="~/Board.Master" AutoEventWireup="true" CodeBehind="EditMessage.aspx.cs" Inherits="UserInterface.EditMessage" %>
<%@ Register TagPrefix="cc" TagName="Editor" Src="~/UserControls/Editor.ascx" %>
<%@ Register TagPrefix="cc" TagName="EmoticonPicker" Src="~/UserControls/EmoticonPicker.ascx" %>
<%@ Register TagPrefix="cc" TagName="PreviewMessage" Src="~/UserControls/PreviewMessage.ascx" %>
<%@ Register TagPrefix="cc" TagName="Attachments" Src="~/UserControls/Attachments.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <cc:PreviewMessage ID="PreviewMessage" runat="server" />
    
    <table class="detail-table">
        <tr>
            <th colspan="2"><%= GetLocalResourceObject("EditMessage") %></th>
        </tr>
        <tr>
            <td class="default-column" valign="top">
                <%= GetLocalResourceObject("Message") %>
                <cc:EmoticonPicker ID="EmoticonPicker" runat="server" />
            </td>
            <td class="alternate-column">
                <cc:Editor ID="Editor" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="default-column" valign="top">
                <%= GetLocalResourceObject("Attachments") %>
            </td>
            <td class="alternate-column">
                <cc:Attachments ID="Attachments" runat="server" />
            </td>
        </tr>
    <asp:PlaceHolder ID="ModeratorOptionsPlaceHolder" runat="server">
        <tr>
            <td class="default-column">
                <%= GetLocalResourceObject("ForModeratorsOnly") %>
            </td>
            <td class="alternate-column">
                <asp:CheckBox ID="IsForModeratorOnlyCheckBox" runat="server" />
            </td>
        </tr>
    </asp:PlaceHolder>
        <tr>
            <td class="options-column" colspan="2">
                <asp:Button ID="EditButton" runat="server" Text="<%$ Resources: Submit %>" OnClick="EditButton_Click" />
                <asp:Button ID="PreviewButton" runat="server" Text="<%$ Resources: Preview %>" OnClick="PreviewButton_Click" />
                <asp:Button ID="CancelButton" runat="server" Text="<%$ Resources: Cancel %>" OnClick="CancelButton_Click" />
            </td>
        </tr>
    </table>
</asp:Content>